﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace ImmovablesManager
{
    public class AppController
    {
        public static ImmovablesRepository ImmoRepository = new ImmovablesRepository();
        private List<Flat> _allFlats = new List<Flat>();
        public static ObservableCollection<RealtorsDataGridDataView> realtorsDataGridDataViews = new ObservableCollection<RealtorsDataGridDataView>();
        public IEnumerable<Flat> Flats
        {
            get
            {
                return ImmoRepository.GetAllFlats();
            } 
        }

        public IEnumerable<NewFlat> NewFlats
        {
            get
            {
                return ImmoRepository.GetAllNewFlats();
            }
        }

        public IEnumerable<CommercialRealEstate> Commercial
        {
            get
            {
                return ImmoRepository.GetAllCommercial();
            }
        }

        
    }
}
